<template>
    <!-- <i v-if="icon" class="sub-el-icon" :class="icon"></i> -->
    <el-icon :size="20" color="#409EFC">
        <component :is="icon" />
    </el-icon>
    <span v-if="title">{{ title }}</span>
</template>
<script setup>
defineProps({
    icon: {
        type: String,
        default: ''
    },
    title: {
        type: String,
        default: ''
    }
})
</script>

<style scoped>
.sub-el-icon {
  color: currentColor;
  width: 1em;
  height: 1em;
}
</style>
